@use "@/css/amtf-var.scss" as *;
// .el-menu--horizontal {
//     --el-menu-horizontal-height: 40px;
// }
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
    background: $secondary !important;
}

.el-dropdown {
    outline: none;

    * {
        outline: none;
    }
}
.el-table .el-table__row td .cell {
    // line-height: 32px;
    color: inherit !important;
}
.el-table thead {
    color: inherit !important;
}

.el-input.is-disabled .el-input__wrapper {
    background-color: #fff !important;
}
.el-input.is-disabled .el-input__inner {
    color: inherit !important;
    -webkit-text-fill-color: unset !important;
    // cursor: not-allowed;
}

.aunset.el-input-number {
    width: unset;
}

.el-cascader__dropdown {
    z-index: 9999 !important;
}

.el-button {
    font-weight: 400;
    border-radius: 2px;
}

.gva-pagination {
    display: flex;
    justify-content: flex-end;

    .el-pagination__editor .el-input__inner {
        height: 2rem;
    }

    .is-active {
        border-radius: 4px;
        // background: var(--el-color-primary);
        // color: #ffffff !important;
    }
}

.el-drawer__header {
    margin-bottom: 0 !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
}

.el-form--inline .el-form-item > .el-input,
.el-form--inline .el-form-item .el-cascader,
.el-form--inline .el-form-item .el-select,
.el-form--inline .el-form-item .el-date-editor,
.el-form--inline .el-form-item .el-autocomplete {
    width: 13rem;
}

.el-dropdown {
    overflow: hidden;
}

.el-table tr th {
    // background-color: #1e293b; /* 对应 dark:bg-slate-900 */
    .cell {
        line-height: 36px;
        // color: #4b5563;
    }
}

.el-table .el-table__row td {
    // background-color: #1e293b; /* 对应 dark:bg-slate-900 */
    .cell {
        line-height: 32px;
        color: #6b7280;
    }
}

// .el-table tr th.is-leaf {
//     background-color: #1e293b; /* 对应 dark:bg-slate-900 */
// }

/* table */
.el-pagination {
    margin-top: 2rem;

    .btn-prev,
    .btn-next {
        border: 1px solid #d1d5db;
        border-radius: 4px;
    }

    .el-pager li {
        border: 1px solid #d1d5db;
        border-radius: 4px;
        color: #6b7280;
        font-size: 0.875rem;
        margin: 0 0.25rem;
    }
}

.el-menu li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.el-menu--vertical .el-menu-item {
    border-radius: 2px;

    &.is-active {
        background-color: var(--el-color-primary) !important;
        color: #fff !important;
    }
}

.el-sub-menu.el-sub-menu__hide-arrow {
    height: 44px;
}

.el-tabs__header {
    margin: 0 0 1px !important;
}

.el-sub-menu.is-active > .el-sub-menu__title {
    color: var(--el-color-primary) !important;
}

.el-sub-menu__title.el-tooltip__trigger,
.el-menu-item .el-menu-tooltip__trigger {
    justify-content: center;
}

.el-menu--horizontal .el-menu .el-sub-menu__title {
    justify-content: flex-start;
}

// html.dark {
//     /* 自定义深色背景颜色 */
//     --el-bg-color: rgb(30, 41, 59);
//     --el-bg-color-overlay: rgb(40, 51, 69);
//     --el-fill-color-light: rgb(15, 23, 42);
//     --el-fill-color: rgb(15, 23, 42);
// }
